<?php

namespace App\Models;

class AdvSignUp extends Base
{
    protected $table = 'adv_sign_up';

    protected $appends = ['amount_yuan'];

    public function adv() {
        return $this->belongsTo(ProducerAdvSnapshot::class, 'adv_snapshot_id');
    }

    public function daren() {
        return $this->belongsTo(Merchant::class, 'merchant_id');
    }

    public function getAmountYuanAttribute() {
        return format_yuan($this->amount);
    }



}
